package com.hkbigdata.userprofile.common.dao

import com.hkbigdata.userprofile.common.bean.TaskInfo
import com.hkbigdata.userprofile.common.util.MySqlUtil

/**
 * @author liuanbo
 * @creat 2024-04-12-15:17
 * @see 2194550857@qq.com
 *
 */
object TaskInfoDAO {
  def TaskInfoDAObytaskid(taskid: String): TaskInfo = {
    val taskinfo = MySqlUtil.queryOne(s"select * from task_info where id='$taskid'", classOf[TaskInfo], true)
    if (taskinfo == None) {
      throw new RuntimeException("task id not found")
    }
    taskinfo.get
  }
}
